<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%> 

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery-1.8.2.min.js"></script>

<script type="text/javascript">
	$(function() {
		//导航切换
		$(".menuson li").click(function() {
			$(".menuson li.active").removeClass("active")
			$(this).addClass("active");
		});

		$('.title').click(function() {
			var $ul = $(this).next('ul');
			$('dd').find('ul').slideUp();
			if ($ul.is(':visible')) {
				$(this).next('ul').slideUp();
			} else {
				$(this).next('ul').slideDown();
			}
		});
	})
</script>


</head>

<body
	style="background:url(img/top.jpg) repeat-x;"
	height="100%">
	<div class="lefttop">
		<span></span>
		<p>后台商品管理</p>
	</div>

	<dl class="leftmenu">

		<dd>
			<div class="title">
				<span><img
					src="img/leftico01.png" />
				</span>分销商管理
			</div>
			<ul class="menuson">
				<li><cite></cite><a
					href="<%=request.getContextPath()%>/distributor/distributorList.action"
					target="rightFrame">分销商管理</a><i></i></li>
			</ul>
		</dd>

		
		<dd>
			<div class="title">
				<span><img
					src="img/leftico02.png" />
				</span>商品管理
			</div>
			<ul class="menuson">
					<%-- <li><cite></cite><a
						href="<%=request.getContextPath()%>/distributorStock_allSeriesList.action"
						target="rightFrame">查看商品</a><i></i></li> --%>
					<c:choose>
						<c:when test="${sessionScope.distributor.distributor_id == 1}">
							<li><cite></cite><a
							href="<%=request.getContextPath()%>/goodsController/allSeriesUI.action"
							target="rightFrame">查看商品系列</a><i></i></li>
						</c:when>
						<c:otherwise>
							<li><cite></cite><a
							href="<%=request.getContextPath()%>/repertoryController/allSeriesUI.action"
							target="rightFrame">查看在售商品系列</a><i></i></li>
						</c:otherwise>
					</c:choose>
			</ul>
		</dd>


		<dd>
			<div class="title">
				<span><img
					src="img/leftico03.png" />
				</span>分销商订单管理
			</div>
			<ul class="menuson">
				<li><cite></cite><a href="distributorOrder_outList.action"
					target="rightFrame">查看出货</a><i></i></li>
				<li><cite></cite><a href="distributorOrder_inList.action"
					target="rightFrame">查看进货</a><i></i></li>
			</ul>
		</dd>

		<dd>
			<div class="title">
				<span><img
					src="img/leftico03.png" />
				</span>用户订单管理
			</div>
			<ul class="menuson">
				<li><cite></cite><a href="goodsSet_list.action"
					target="rightFrame">查看订单</a><i></i></li>
			</ul>
		</dd>



	</dl>

</body>
</html>
